enableSaving [false, false];
//Field-repair
[] execVM "zlt_fieldrepair.sqf";
//Clean-script
   [
		3*60, // seconds to delete dead bodies (0 means don't delete) 
		0, // seconds to delete dead vehicles (0 means don't delete)
		5*60, // seconds to delete dropped weapons (0 means don't delete)
		0, // seconds to deleted planted explosives (0 means don't delete)
		0 // seconds to delete dropped smokes/chemlights (0 means don't delete)
	] execVM 'repetitive_cleanup.sqf';

	//Common
call compile preprocessFile "=BTC=_definitions.sqf";
if (BTC_p_rev != 2) then {call compile preprocessFile "=BTC=_revive\=BTC=_revive_init.sqf";} else {call compile preprocessFile "=BTC=_revive_lite\=BTC=_revive_init.sqf";};
_logistic = execVM "=BTC=_Logistic\=BTC=_logistic_Init.sqf";

// TF Radio Frequency Table
[] execVM "zlt_gen_freqs.sqf";

// IED-Script
[] spawn {call compile preprocessFileLineNumbers "EPD\Ied_Init.sqf";};

//Init Server
if (isServer) then
{
	call compile preprocessFile "init_server.sqf";
};
//HC
if (BTC_p_HC == 1) then
{
	if (!isServer && !hasInterface) then
	{
		call compile preprocessFile "=BTC=_fnc_server.sqf";
		"BTC_to_HC" addPublicVariableEventHandler BTC_HC_PVEH;
		BTC_HC_name = name player;
		publicVariable "BTC_HC_name";
	};
};
//Init Player
if (!isdedicated && hasInterface) then
{
	[] spawn
	{
		waitUntil {!isNull player};
		waitUntil {player == player};
		player sideChat "Loading...";
		call compile preprocessFile "=BTC=_fnc_client.sqf";
		call compile preprocessFile "init_player.sqf";
		player sideChat "Initialization Complete";
	};
};

X39_MedSys_var_Pain_MorphineHealValue = 3; // Default 1
X39_MedSys_BandageBleedingHeal = 2; // Default 1
X39_MedSys_Healing_MedKitValue = 5; // Default ?

X39_MedSys_Display_TimeBeforeRespawnAvailable_Death = 30; // Default 600

X39_MedSys_Legs_DamageMultiplicator = 2; // Default 1
X39_MedSys_Generic_DamageBeforeKnockOut = 4; // Default 1
X39_MedSys_Generic_DamageBeforePermaKnockOut = 8; // Default 1.5
X39_MedSys_Generic_DamageBeforeDead = 10; // Default 2